<div class="container-fluid container-under-main-nav">

  <div class="row">
    <div class="col-sm-1">
      <button class="btn btn-default btn-block"
         ng-click="goBack()">
        <i class="fa fa-reply"></i>返回
      </button>
    </div>

    <div class="col-sm-6">
      <p class="lead text-primary">{{ currentDiscussion.title }}</p>
    </div>

    <div class="col-sm-offset-2 col-sm-2">
      <button class="btn btn-success btn-block" ng-click="addReply()">回复此讨论</button>
    </div>
  </div>

  <hr/>

</div>

<div class="container">

  <div class="row">

    <!--讨论发起人的基本信息-->
    <div class="col-sm-1">
      <img class="lesson-discussion-info-user-head img-circle"
           ng-src="image/head_image/{{currentDiscussion.creater.head_image}}"
           alt="{{currentDiscussion.creater.username}}"
           title="{{currentDiscussion.creater.username}}"/>
    </div>

    <!--讨论的内容-->
    <div class="col-sm-11">

      <div class="panel panel-default">

        <div class="panel-heading">
          此讨论由 @{{currentDiscussion.creater.username}} 创建于 {{currentDiscussion.created_at}}
        </div>

        <div class="panel-body">
          <markdown-previewer bind-content="currentDiscussion.content" ></markdown-previewer>
        </div>

        <!--<div class="panel-footer" ng-show="currentDiscussion.followers.length">-->

          <!--请求：-->

          <!--<img class="img-circle project-discussion-info-sm-user-head"-->
               <!--ng-repeat="follower in currentDiscussion.followers"-->
               <!--ng-src="img/userHeadImage/{{follower.head_image}}"-->
               <!--alt="{{follower.username}}"-->
               <!--title="{{follower.username}}"/>-->

          <!--关注此讨论-->
        <!--</div>-->
      </div>
    </div>

  </div>

  <!--讨论的修改与控制-->
  <!--<div class="row">-->
    <!--<div class="col-sm-offset-2 col-sm-3">-->
      <!--<button class="btn btn-danger btn-block" ng-show="currentDiscussion.baseInfo.open" ng-click="toggleOpenStatus()">关闭此讨论</button>-->
      <!--<button class="btn btn-danger btn-block" ng-hide="currentDiscussion.baseInfo.open" ng-click="toggleOpenStatus()">重新开启讨论</button>-->
    <!--</div>-->

    <!--<div class="col-sm-offset-1 col-sm-3">-->
      <!--<button class="btn btn-success btn-block" ng-show="currentDiscussion.baseInfo.open" ng-click="addComment()">参与此讨论</button>-->
      <!--<span class="btn btn-warning btn-block disabled" ng-hide="currentDiscussion.baseInfo.open">已关闭的讨论无法参与</span>-->
    <!--</div>-->
  <!--</div>-->

  <!--讨论的回复列表-->
  <div class="row" ng-repeat="currentReply in currentDiscussion.replies">
    <div class="col-sm-1">
      <img class="lesson-discussion-info-user-head img-circle"
           ng-src="image/head_image/{{currentReply.creater.head_image}}"
           alt="{{currentReply.creater.username}}"
           title="{{currentReply.creater.username}}"/>
    </div>

    <div class="col-sm-11">
      <div class="panel panel-default">

        <div class="panel-heading">
          此回复由 @{{currentReply.creater.username}} 创建于 {{currentReply.created_at}}
        </div>

        <div class="panel-body">
          <markdown-previewer bind-content="currentReply.content" ></markdown-previewer>
        </div>
      </div>

    </div>
  </div>

</div>